package com.bl.student.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by yujingyi on 2018/1/29.
 */
@Entity
@Data
@Table(name = "USER_TAG")
@ApiModel(value = "UserTagEntity", description = "用户标签")
@DynamicInsert
@DynamicUpdate
public class UserTagEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "用户id")
    @Column(name = "partyb_id")
    private String userId;

    @ApiModelProperty(value = "标签name")
    @Column(name = "tag_name")
    private String tagName;
}
